import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//自由格式查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.ibpsApp}/ibps/msg/moudule/search`,
}

//自由格式明细查询
export function findFreeFormatDeatil(id) {
  return request({
    url: `${defaultSettings.ctx.ibpsApp}/ibps/msg/moudule/detail?id=` + praseStrEmpty(id),
    method: 'get'
  })
}

// 自由格式录入
export function findFreeEntry(data) {
  return request({
    url: `${defaultSettings.ctx.ibpsApp}/ibps/msg/moudule/saveAndSendMsg`,
    method: 'post',
    data:data
  })
}
